//tabs
export interface menuTab {
  name: string,
  path: string
}

//菜单项
export interface menuItem {
  id: number,   //唯一id，标识列
  pid: number,   //父菜单
  label: string, //显示
  value: string,
  icon: string, //icon
  url: string,   //路由
  component: string | null,
  menuType: number,
  children: menuItem[]
}

//菜单项
export interface menuTreeItem {
  id: number,
  label: string,
  children: menuTreeItem[]
}

//路由项
export interface CRouteItem {
  name: string,
  path: string,
  meta: {
    icon: string,
    title: string
  }
  component: any,
  children: CRouteItem[]
}

//账户登录信息
export interface CUser {
  username: string,
  password: string,
  roleId: number
}

//权限菜单
export interface CMenu {
  id: number,
  name: string,
  path: string,
  meta: {
    icon: string,
    title: string
  }
  component: any,
  children: CMenu[]
}
